package apiday02;

public class ObjectDemo {
    public static void main(String[] args) {
        Point p1 = new Point(1, 2);
        Point p2 = new Point(1, 2);
        String str = "这个点是"+p1;
        System.out.println(str);
        P p = new P(1, 2);
        System.out.println(p1.equals(p));

    }
}
